EMA Pullback Speed Strategy 📌 **Overview**
The **EMA Pullback Speed Strategy** is a trend-following approach that combines **price momentum** and **Exponential Moving Averages (EMA)**.
It aims to identify high-probability entry points during brief pullbacks within ongoing uptrends or downtrends.
  
The strategy evaluates **speed of price movement**, **relative position to dynamic EMA**, and **candlestick patterns** to determine ideal timing for entries.
One of the key concepts is checking whether the price has **“not pulled back too much”**, helping focus only on situations where the trend is likely to continue.
⚠️ This strategy is designed for educational and research purposes only. It does not guarantee future profits.
  
🧭 **Purpose**
This strategy addresses the common issue of **"jumping in too late during trends and taking unnecessary losses."**
By waiting for a healthy pullback and confirming signs of **trend resumption**, traders can enter with greater confidence and reduce false entries.
🎯 **Strategy Objectives**
* Enter in the direction of the prevailing trend to increase win rate
* Filter out false signals using pullback depth, speed, and candlestick confirmations
* Predefine Take-Profit (TP) and Stop-Loss (SL) levels for safer, rule-based trading
✨ **Key Features**
* **Dynamic EMA**: Reacts faster when price moves quickly, slower when market is calm – adapting to current momentum
* **Pullback Filter**: Avoids trades when price pulls back too far (e.g., more than 5%), indicating a trend may be weakening
* **Speed Check**: Measures how strongly the price returns to the trend using candlestick body speed (open-to-close range in ticks)
📊 **Trading Rules**
**■ Long Entry Conditions:**
* Current price is above the dynamic EMA (indicating uptrend)
* Price has pulled back toward the EMA (a "buy the dip" situation)
* Pullback depth is within the threshold (not excessive)
* Candlesticks show consecutive bullish closes and break the previous high
* Price speed is strong (positive movement with momentum)
**■ Short Entry Conditions:**
* Current price is below the dynamic EMA (indicating downtrend)
* Price has pulled back up toward the EMA (a "sell the rally" setup)
* Pullback is within range (not too deep)
* Candlesticks show consecutive bearish closes and break the previous low
* Price speed is negative (downward momentum confirmed)
**■ Exit Conditions (TP/SL):**
* **Take-Profit (TP):** Fixed 1.5% target above/below entry price
* **Stop-Loss (SL):** Based on recent price volatility, calculated using ATR × 4
💰 **Risk Management Parameters**
* Symbol & Timeframe: BTCUSD on 1-hour chart (H1)
* Test Capital: \$3000 (simulated account)
* Commission: 0.02%
* Slippage: 2 ticks (minimal execution lag)
* Max risk per trade: 5% of account balance
* Backtest Period: Aug 30, 2023 – May 9, 2025
* Profit Factor (PF): 1.965 (Net profit ÷ Net loss, including spreads & fees)
⚙️ **Trading Parameters & Indicator Settings**
* Maximum EMA Length: 50
* Accelerator Multiplier: 3.0
* Pullback Threshold: 5.0%
* ATR Period: 14
* ATR Multiplier (SL distance): 4.0
* Fixed TP: 1.5%
* Short-term EMA: 21
* Long-term EMA: 50
* Long Speed Threshold: ≥ 1000.0 (ticks)
* Short Speed Threshold: ≤ -1000.0 (ticks)
⚠️Adjustments are based on BTCUSD.
⚠️Forex and other currency pairs require separate adjustments.
🔧 **Strategy Improvements & Uniqueness**
Unlike basic moving average crossovers or RSI triggers, this strategy emphasizes **"momentum-supported pullbacks"**.
By combining dynamic EMA, speed checks, and candlestick signals, it captures trades **as if surfing the wave of a trend.**
Its built-in filters help **avoid overextended pullbacks**, which often signal the trend is ending – making it more robust than traditional trend-following systems.
✅ **Summary**
The **EMA Pullback Speed Strategy** is easy to understand, rule-based, and highly reproducible – ideal for both beginners and intermediate traders.
Because it shows **clear visual entry/exit points** on the chart, it’s also a great tool for practicing discretionary trading decisions.
⚠️ Past performance is not a guarantee of future results.
Always respect your Stop-Loss levels and manage your position size according to your risk tolerance.
"stop loss" için komut dosyalarını ara
Fusion Sniper X [ Crypto Strategy]📌 Fusion Sniper X   — Description for TradingView
Overview:
Fusion Sniper X is a purpose-built algorithmic trading strategy designed for cryptocurrency markets, especially effective on the 1-hour chart. It combines advanced trend analysis, momentum filtering, volatility confirmation, and dynamic trade management to deliver a fast-reacting, high-precision trading system. This script is not a basic mashup of indicators, but a fully integrated strategy with logical synergy between components, internal equity management, and visual trade analytics via a customizable dashboard.
🔍 How It Works
🔸 Trend Detection – McGinley Dynamic + Gradient Slope
McGinley Dynamic is used as the baseline to reflect adaptive price action more responsively than standard moving averages.
A custom gradient filter, calculated using the slope of the McGinley line normalized by ATR, determines if the market is trending up or down.
trendUp when slope > 0
trendDown when slope < 0
🔸 Momentum Confirmation – ZLEMA-Smoothed CCI
CCI (Commodity Channel Index) is used to detect momentum strength and direction.
It is further smoothed with ZLEMA (Zero Lag EMA) to reduce noise while keeping lag minimal.
Entry is confirmed when:
CCI > 0 (Bullish momentum)
CCI < 0 (Bearish momentum)
🔸 Volume Confirmation – Relative Volume Spike Filter
Uses a 20-period EMA of volume to calculate the expected average.
Trades are only triggered if real-time volume exceeds this average by a user-defined multiplier (default: 1.5x), filtering out low-conviction signals.
🔸 Trap Detection – Wick-to-Body Reversal Filter
Filters out potential trap candles using wick-to-body ratio and body size compared to ATR.
Avoids entering on manipulative price spikes where:
Long traps show large lower wicks.
Short traps show large upper wicks.
🔸 Entry Conditions
A trade is only allowed when:
Within selected date range
Cooldown between trades is respected
Daily drawdown guard is not triggered
All of the following align:
Trend direction (McGinley slope)
Momentum confirmation (CCI ZLEMA)
Volume spike active
No trap candle detected
🎯 Trade Management Logic
✅ Take Profit (TP1/TP2 System)
TP1: 50% of the position is closed at a predefined % gain (default 2%).
TP2: Remaining 100% is closed at a higher profit level (default 4%).
🛑 Stop Loss
A fixed 2% stop loss is enforced per position using strategy.exit(..., stop=...) logic.
Stop loss is active for both TP2 and primary entries and updates the dashboard if triggered.
❄️ Cooldown & Equity Protection
A user-defined cooldown period (in bars) prevents overtrading.
A daily equity loss guard blocks new trades if portfolio drawdown exceeds a % threshold (default: 2.5%).
📊 Real-Time Dashboard (On-Chart Table)
Fusion Sniper X features a futuristic, color-coded dashboard with theme controls, showing:
Current position and entry price
Real-time profit/loss (%)
TP1, TP2, and SL status
Trend and momentum direction
Volume spike state and trap candle alerts
Trade statistics: total, win/loss, drawdown
Symbol and timeframe display
Themes include: Neon, Cyber, Monochrome, and Dark Techno.
📈 Visuals
McGinley baseline is plotted in orange for trend bias.
Bar colors reflect active positions (green for long, red for short).
Stop loss line plotted in red when active.
Background shading highlights active volume spikes.
✅ Why It’s Not Just a Mashup
Fusion Sniper X is an original system architecture built on:
Custom logic (gradient-based trend slope, wick trap rejection)
Synergistic indicator stacking (ZLEMA-smoothed momentum, ATR-based slope)
Position and equity tracking (not just signal-based plotting)
Intelligent risk control with take-profits, stop losses, cooldown, and max loss rules
An interactive dashboard that enhances usability and transparency
Every component has a distinct role in the system, and none are used as-is from public sources without modification or integration logic. The design follows a cohesive and rule-based structure for algorithmic execution.
⚠️ Disclaimer
This strategy is for educational and informational purposes only. It does not constitute financial advice. Trading cryptocurrencies involves substantial risk, and past performance is not indicative of future results. Always backtest and forward-test before using on a live account. Use at your own risk.
📅 Backtest Range & Market Conditions Note
The performance results displayed for Fusion Sniper X are based on a focused backtest period from December 1, 2024 to May 10, 2025. This range was chosen intentionally due to the dynamic and volatile nature of cryptocurrency markets, where structural and behavioral shifts can occur rapidly. By evaluating over a shorter, recent time window, the strategy is tuned to current market mechanics and avoids misleading results that could come from outdated market regimes. This ensures more realistic, forward-aligned performance — particularly important for high-frequency systems operating on the 1-hour timeframe.
Praetor Sentinel V11.2 NOLOOSE BETA📈 Praetor Sentinel V11.2 – "NOLOOSE BETA"
Algorithmic Trading Strategy for Trend Markets with Adaptive Risk Management
Praetor Sentinel V11.2 is an advanced algorithmic trading strategy for TradingView, specifically designed to operate in strong trend conditions. It combines multiple technical systems—including dynamic trend filters, multi-layer EMA structures, ADX-based volatility control, and adaptive trailing stops—into a powerful and automated trading framework.
🔧 Core Features
Multi-EMA Trend Detection: Two EMA pairs (short/long) to identify and confirm directional trends.
XO-EMA Breakout Logic: Fast EMA crossover to detect breakout opportunities.
ADX Trend Filter: Trades only during strong market trends (above custom ADX threshold).
HTF Filter: Optional higher timeframe trend confirmation (e.g. Daily 50 EMA).
VWAP Validation: Ensures entries aren't taken against the volumetric average.
RSI Filter: Adds a momentum filter (e.g. RSI > 50 for long trades).
🎯 Entry Signals
The strategy uses two entry types:
Breakout Entries: Based on XO-EMA cross and multi-EMA trend alignment.
Pullback Entries: Configurable via various methods such as EMA21 reentry, RSI reversal, engulfing candles, or VWAP reclaim.
All entries can be delayed via confirmation candle logic, requiring a bullish or bearish follow-up bar.
🛡️ Risk Management & Exit Logic
Dynamic ATR Trailing Stop: Adjusts stop distance according to market volatility with optional swing high/low protection.
Break-Even Logic: Locks in trades at breakeven once a defined profit is reached.
Hard Stop-Loss: Caps potential loss per trade with a fixed % (e.g. 1%).
Safe Mode ("NOLOOSE"): Exits early if price moves too far against the position — ideal for automated bots that must avoid drawdowns.
🤖 Automation & Alerts
This strategy is fully automatable with services like 3Commas using built-in alert messages for entries and exits.
All parameters are fully configurable to adapt to different assets, timeframes, and trading styles.
⚙️ Additional Features
Configurable leverage & position sizing
Time-based trading window
Built-in Anchored VWAP
Modular design for easy extension
📌 Summary
Praetor Sentinel V11.2 is a professional-grade tool for trend traders who want rule-based entry/exit logic, adaptive stop systems, and robust protection features. When paired with automation tools, it offers a reliable, low-maintenance setup that emphasizes safety, structure, and scalability.
🛠 How to Use Praetor Sentinel V11.2 – NOLOOSE BETA
🔍 1. Basic Configuration (Required)
Setting	Description
Enable Long Trades	Enables long (buy) positions.
Enable Short Trades	Enables short (sell) positions.
Leverage	Used for position sizing calculations.
Position Size %	Defines % of capital to be used per trade.
⏰ 2. Time Filter (Optional)
Restricts trading to a defined time range.
Setting	Description
Start Date	Start date for strategy to be active.
End Date	End date for strategy to stop.
Time Zone	Time zone for above settings.
📊 3. Trend Setup (Essential for Entry Signals)
Setting	Description
MA Type	Type of moving average: EMA or SMA.
EMA1/2 Short & Long	Two EMA-based systems to determine trend.
Fast/Slow EMA (XO)	Used for crossover breakout detection.
HTF Filter	Uses higher timeframe trend for additional confirmation.
RSI Filter	Confirms entries only if momentum (RSI) supports it.
ADX Threshold	Ensures trades only occur during strong trends.
🎯 4. Entry Logic
Setting	Description
Pullback Entry Type	Enables optional entry setups:
"Off"
"EMA21"
"RSI"
"Engulfing"
"VWAP"
| Use Confirmation Candle | Entry is delayed until a confirmation bar appears. |
| VWAP Confirmation | Trade only if price is above/below the VWAP (based on direction). |
Note: You can combine breakout + pullback signals. Only one has to trigger.
🧯 5. Risk Control & Exit Settings
Setting	Description
Trailing Stop Mode	
"Standard": Classic trailing stop
"Dynamic ATR": Adjusts to current volatility
"Dynamic ATR + Swing": Adds swing high/low buffer
| Enable Break-Even | Moves SL to breakeven once a target % gain is reached. |
| Enable Hard Stop-Loss | Fixed stop-loss (e.g. 1%) to cap trade risk. |
| Enable Safe Mode | Exits trade early if price moves against it beyond defined % (e.g. 0.3%). |
🔔 6. Alerts & Bot Automation
Setting	Description
Entry Long/Short Msg	Text message sent via alert when a position opens.
Exit Long/Short Msg	Alert message for stop-loss/exit logic.
How to automate with 3Commas:
Load the strategy on your chart.
Manually create alerts using "Create Alert" in TradingView.
Use the built-in alert_message values for bot integration.
✅ Recommended Settings (Example for BTC/ETH on 1H)
Long & Short: ✅ Enabled
Leverage: 2.0
Timeframe: 1H
Pullback Entry: "EMA21"
MA Type: EMA
HTF Filter: Enabled (Daily EMA50)
RSI Filter: Enabled
VWAP Filter: Enabled
Break-Even: On at 0.5%
Hard SL: 1.0%
Safe Mode: On at -0.3%
Trailing Stop: "Dynamic ATR + Swing"
📘 Pro Tips for Testing & Customization
Use the Strategy Tester in TradingView to analyze performance over different assets.
Experiment with timeframes and entry modes.
Ideal for trending assets like BTC, ETH, SOL, etc.
You can expand it with take-profit logic, fixed TPs, indicator exits, etc.
Dskyz (DAFE) Adaptive Regime - Quant Machine ProDskyz (DAFE) Adaptive Regime - Quant Machine Pro:
Buckle up for the Dskyz (DAFE) Adaptive Regime - Quant Machine Pro, is a strategy that’s your ultimate edge for conquering futures markets like ES, MES, NQ, and MNQ. This isn’t just another script—it’s a quant-grade powerhouse, crafted with precision to adapt to market regimes, deliver multi-factor signals, and protect your capital with futures-tuned risk management. With its shimmering DAFE visuals, dual dashboards, and glowing watermark, it turns your charts into a cyberpunk command center, making trading as thrilling as it is profitable.
Unlike generic scripts clogging up the space, the Adaptive Regime is a DAFE original, built from the ground up to tackle the chaos of futures trading. It identifies market regimes (Trending, Range, Volatile, Quiet) using ADX, Bollinger Bands, and HTF indicators, then fires trades based on a weighted scoring system that blends candlestick patterns, RSI, MACD, and more. Add in dynamic stops, trailing exits, and a 5% drawdown circuit breaker, and you’ve got a system that’s as safe as it is aggressive. Whether you’re a newbie or a prop desk pro, this strat’s your ticket to outsmarting the markets. Let’s break down every detail and see why it’s a must-have.
Why Traders Need This Strategy
Futures markets are a gauntlet—fast moves, volatility spikes (like the April 28, 2025 NQ 1k-point drop), and institutional traps that punish the unprepared. Meanwhile, platforms are flooded with low-effort scripts that recycle old ideas with zero innovation. The Adaptive Regime stands tall, offering:
Adaptive Intelligence: Detects market regimes (Trending, Range, Volatile, Quiet) to optimize signals, unlike one-size-fits-all scripts.
Multi-Factor Precision: Combines candlestick patterns, MA trends, RSI, MACD, volume, and HTF confirmation for high-probability trades.
Futures-Optimized Risk: Calculates position sizes based on $ risk (default: $300), with ATR or fixed stops/TPs tailored for ES/MES.
Bulletproof Safety: 5% daily drawdown circuit breaker and trailing stops keep your account intact, even in chaos.
DAFE Visual Mastery: Pulsing Bollinger Band fills, dynamic SL/TP lines, and dual dashboards (metrics + position) make signals crystal-clear and charts a work of art.
Original Craftsmanship: A DAFE creation, built with community passion, not a rehashed clone of generic code.
Traders need this because it’s a complete, adaptive system that blends quant smarts, user-friendly design, and DAFE flair. It’s your edge to trade with confidence, cut through market noise, and leave the copycats in the dust.
Strategy Components
1. Market Regime Detection
The strategy’s brain is its ability to classify market conditions into five regimes, ensuring signals match the environment.
How It Works:
Trending (Regime 1): ADX > 20, fast/slow EMA spread > 0.3x ATR, HTF RSI > 50 or MACD bullish (htf_trend_bull/bear).
Range (Regime 2): ADX < 25, price range < 3% of close, no HTF trend.
Volatile (Regime 3): BB width > 1.5x avg, ATR > 1.2x avg, HTF RSI overbought/oversold.
Quiet (Regime 4): BB width < 0.8x avg, ATR < 0.9x avg.
Other (Regime 5): Default for unclear conditions.
Indicators: ADX (14), BB width (20), ATR (14, 50-bar SMA), HTF RSI (14, daily default), HTF MACD (12,26,9).
Why It’s Brilliant:
Regime detection adapts signals to market context, boosting win rates in trending or volatile conditions.
HTF RSI/MACD add a big-picture filter, rare in basic scripts.
Visualized via gradient background (green for Trending, orange for Range, red for Volatile, gray for Quiet, navy for Other).
2. Multi-Factor Signal Scoring
Entries are driven by a weighted scoring system that combines candlestick patterns, trend, momentum, and volume for robust signals.
Candlestick Patterns:
Bullish: Engulfing (0.5), hammer (0.4 in Range, 0.2 else), morning star (0.2), piercing (0.2), double bottom (0.3 in Volatile, 0.15 else). Must be near support (low ≤ 1.01x 20-bar low) with volume spike (>1.5x 20-bar avg).
Bearish: Engulfing (0.5), shooting star (0.4 in Range, 0.2 else), evening star (0.2), dark cloud (0.2), double top (0.3 in Volatile, 0.15 else). Must be near resistance (high ≥ 0.99x 20-bar high) with volume spike.
Logic: Patterns are weighted higher in specific regimes (e.g., hammer in Range, double bottom in Volatile).
Additional Factors:
Trend: Fast EMA (20) > slow EMA (50) + 0.5x ATR (trend_bull, +0.2); opposite for trend_bear.
RSI: RSI (14) < 30 (rsi_bull, +0.15); > 70 (rsi_bear, +0.15).
MACD: MACD line > signal (12,26,9, macd_bull, +0.15); opposite for macd_bear.
Volume: ATR > 1.2x 50-bar avg (vol_expansion, +0.1).
HTF Confirmation: HTF RSI < 70 and MACD bullish (htf_bull_confirm, +0.2); RSI > 30 and MACD bearish (htf_bear_confirm, +0.2).
Scoring:
bull_score = sum of bullish factors; bear_score = sum of bearish. Entry requires score ≥ 1.0.
Example: Bullish engulfing (0.5) + trend_bull (0.2) + rsi_bull (0.15) + htf_bull_confirm (0.2) = 1.05, triggers long.
Why It’s Brilliant:
Multi-factor scoring ensures signals are confirmed by multiple market dynamics, reducing false positives.
Regime-specific weights make patterns more relevant (e.g., hammers shine in Range markets).
HTF confirmation aligns with the big picture, a quant edge over simplistic scripts.
3. Futures-Tuned Risk Management
The risk system is built for futures, calculating position sizes based on $ risk and offering flexible stops/TPs.
Position Sizing:
Logic: Risk per trade (default: $300) ÷ (stop distance in points * point value) = contracts, capped at max_contracts (default: 5). Point value = tick value (e.g., $12.5 for ES) * ticks per point (4) * contract multiplier (1 for ES, 0.1 for MES).
Example: $300 risk, 8-point stop, ES ($50/point) → 0.75 contracts, rounded to 1.
Impact: Precise sizing prevents over-leverage, critical for micro contracts like MES.
Stops and Take-Profits:
Fixed: Default stop = 8 points, TP = 16 points (2:1 reward/risk).
ATR-Based: Stop = 1.5x ATR (default), TP = 3x ATR, enabled via use_atr_for_stops.
Logic: Stops set at swing low/high ± stop distance; TPs at 2x stop distance from entry.
Impact: ATR stops adapt to volatility, while fixed stops suit stable markets.
Trailing Stops:
Logic: Activates at 50% of TP distance. Trails at close ± 1.5x ATR (atr_multiplier). Longs: max(trail_stop_long, close - ATR * 1.5); shorts: min(trail_stop_short, close + ATR * 1.5).
Impact: Locks in profits during trends, a game-changer in volatile sessions.
Circuit Breaker:
Logic: Pauses trading if daily drawdown > 5% (daily_drawdown = (max_equity - equity) / max_equity).
Impact: Protects capital during black swan events (e.g., April 27, 2025 ES slippage).
Why It’s Brilliant:
Futures-specific inputs (tick value, multiplier) make it plug-and-play for ES/MES.
Trailing stops and circuit breaker add pro-level safety, rare in off-the-shelf scripts.
Flexible stops (ATR or fixed) suit different trading styles.
4. Trade Entry and Exit Logic
Entries and exits are precise, driven by bull_score/bear_score and protected by drawdown checks.
Entry Conditions:
Long: bull_score ≥ 1.0, no position (position_size <= 0), drawdown < 5% (not pause_trading). Calculates contracts, sets stop at swing low - stop points, TP at 2x stop distance.
Short: bear_score ≥ 1.0, position_size >= 0, drawdown < 5%. Stop at swing high + stop points, TP at 2x stop distance.
Logic: Tracks entry_regime for PNL arrays. Closes opposite positions before entering.
Exit Conditions:
Stop-Loss/Take-Profit: Hits stop or TP (strategy.exit).
Trailing Stop: Activates at 50% TP, trails by ATR * 1.5.
Emergency Exit: Closes if price breaches stop (close < long_stop_price or close > short_stop_price).
Reset: Clears stop/TP prices when flat (position_size = 0).
Why It’s Brilliant:
Score-based entries ensure multi-factor confirmation, filtering out weak signals.
Trailing stops maximize profits in trends, unlike static exits in basic scripts.
Emergency exits add an extra safety layer, critical for futures volatility.
5. DAFE Visuals
The visuals are pure DAFE magic, blending function with cyberpunk flair to make signals intuitive and charts stunning.
Shimmering Bollinger Band Fill:
Display: BB basis (20, white), upper/lower (green/red, 45% transparent). Fill pulses (30–50 alpha) by regime, with glow (60–95 alpha) near bands (close ≥ 0.995x upper or ≤ 1.005x lower).
Purpose: Highlights volatility and key levels with a futuristic glow.
Visuals make complex regimes and signals instantly clear, even for newbies.
Pulsing effects and regime-specific colors add a DAFE signature, setting it apart from generic scripts.
BB glow emphasizes tradeable levels, enhancing decision-making.
Chart Background (Regime Heatmap):
Green — Trending Market: Strong, sustained price movement in one direction. The market is in a trend phase—momentum follows through.
Orange — Range-Bound: Market is consolidating or moving sideways, with no clear up/down trend. Great for mean reversion setups.
Red — Volatile Regime: High volatility, heightened risk, and larger/faster price swings—trade with caution.
Gray — Quiet/Low Volatility: Market is calm and inactive, with small moves—often poor conditions for most strategies.
Navy — Other/Neutral: Regime is uncertain or mixed; signals may be less reliable.
Bollinger Bands Glow (Dynamic Fill):
Neon Red Glow — Warning!: Price is near or breaking above the upper band; momentum is overstretched, watch for overbought conditions or reversals.
Bright Green Glow — Opportunity!: Price is near or breaking below the lower band; market could be oversold, prime for bounce or reversal.
Trend Green Fill — Trending Regime: Fills between bands with green when the market is trending, showing clear momentum.
Gold/Yellow Fill — Range Regime: Fills with gold/aqua in range conditions, showing the market is sideways/oscillating.
Magenta/Red Fill — Volatility Spike: Fills with vivid magenta/red during highly volatile regimes.
Blue Fill — Neutral/Quiet: A soft blue glow for other or uncertain market states.
Moving Averages:
Display: Blue fast EMA (20), red slow EMA (50), 2px.
Purpose: Shows trend direction, with trend_dir requiring ATR-scaled spread.
Dynamic SL/TP Lines:
Display: Pulsing colors (red SL, green TP for Trending; yellow/orange for Range, etc.), 3px, with pulse_alpha for shimmer.
Purpose: Tracks stops/TPs in real-time, color-coded by regime.
6. Dual Dashboards
Two dashboards deliver real-time insights, making the strat a quant command center.
Bottom-Left Metrics Dashboard (2x13):
Metrics: Mode (Active/Paused), trend (Bullish/Bearish/Neutral), ATR, ATR avg, volume spike (YES/NO), RSI (value + Oversold/Overbought/Neutral), HTF RSI, HTF trend, last signal (Buy/Sell/None), regime, bull score.
Display: Black (29% transparent), purple title, color-coded (green for bullish, red for bearish).
Purpose: Consolidates market context and signal strength.
Top-Right Position Dashboard (2x7):
Metrics: Regime, position side (Long/Short/None), position PNL ($), SL, TP, daily PNL ($).
Display: Black (29% transparent), purple title, color-coded (lime for Long, red for Short).
Purpose: Tracks live trades and profitability.
Why It’s Brilliant:
Dual dashboards cover market context and trade status, a rare feature.
Color-coding and concise metrics guide beginners (e.g., green “Buy” = go).
Real-time PNL and SL/TP visibility empower disciplined trading.
7. Performance Tracking
Logic: Arrays (regime_pnl_long/short, regime_win/loss_long/short) track PNL and win/loss by regime (1–5). Updated on trade close (barstate.isconfirmed).
Purpose: Prepares for future adaptive thresholds (e.g., adjust bull_score min based on regime performance).
Why It’s Brilliant: Lays the groundwork for self-optimizing logic, a quant edge over static scripts.
Key Features
Regime-Adaptive: Optimizes signals for Trending, Range, Volatile, Quiet markets.
Futures-Optimized: Precise sizing for ES/MES with tick-based risk inputs.
Multi-Factor Signals: Candlestick patterns, RSI, MACD, and HTF confirmation for robust entries.
Dynamic Exits: ATR/fixed stops, 2:1 TPs, and trailing stops maximize profits.
Safe and Smart: 5% drawdown breaker and emergency exits protect capital.
DAFE Visuals: Shimmering BB fill, pulsing SL/TP, and dual dashboards.
Backtest-Ready: Fixed qty and tick calc for accurate historical testing.
How to Use
Add to Chart: Load on a 5min ES/MES chart in TradingView.
Configure Inputs: Set instrument (ES/MES), tick value ($12.5/$1.25), multiplier (1/0.1), risk ($300 default). Enable ATR stops for volatility.
Monitor Dashboards: Bottom-left for regime/signals, top-right for position/PNL.
Backtest: Run in strategy tester to compare regimes.
Live Trade: Connect to Tradovate or similar. Watch for slippage (e.g., April 27, 2025 ES issues).
Replay Test: Try April 28, 2025 NQ drop to see regime shifts and stops.
Disclaimer
Trading futures involves significant risk of loss and is not suitable for all investors. Past performance does not guarantee future results. Backtest results may differ from live trading due to slippage, fees, or market conditions. Use this strategy at your own risk, and consult a financial advisor before trading. Dskyz (DAFE) Trading Systems is not responsible for any losses incurred.
Backtesting:
Frame: 2023-09-20 - 2025-04-29
Slippage: 3
Fee Typical Range (per side, per contract)
CME Exchange $1.14 – $1.20
Clearing $0.10 – $0.30
NFA Regulatory $0.02
Firm/Broker Commis. $0.25 – $0.80 (retail prop)
TOTAL $1.60 – $2.30 per side
Round Turn: (enter+exit) = $3.20 – $4.60 per contract
Final Notes
The Dskyz (DAFE) Adaptive Regime - Quant Machine Pro is more than a strategy—it’s a revolution. Crafted with DAFE’s signature precision, it rises above generic scripts with adaptive regimes, quant-grade signals, and visuals that make trading a thrill. Whether you’re scalping MES or swinging ES, this system empowers you to navigate markets with confidence and style. Join the DAFE crew, light up your charts, and let’s dominate the futures game!
(This publishing will most likely be taken down do to some miscellaneous rule about properly displaying charting symbols, or whatever. Once I've identified what part of the publishing they want to pick on, I'll adjust and repost.)
Use it with discipline. Use it with clarity. Trade smarter.
**I will continue to release incredible strategies and indicators until I turn this into a brand or until someone offers me a contract.
Created by Dskyz, powered by DAFE Trading Systems. Trade smart, trade bold.
Moving Average Shift WaveTrend StrategyMoving Average Shift WaveTrend Strategy 
 🧭 Overview 
The  Moving Average Shift WaveTrend Strategy  is a trend-following and momentum-based trading system designed to be overlayed on TradingView charts. It executes trades based on the confluence of multiple technical conditions—volatility, session timing, trend direction, and oscillator momentum—to deliver logical and systematic trade entries and exits.
 🎯 Strategy Objectives 
   Enter trades aligned with the prevailing long-term trend
 Exit trades on confirmed momentum reversals
 Avoid false signals using session timing and volatility filters
 Apply structured risk management with automatic TP, SL, and trailing stops
 
 ⚙️ Key Features 
   Selectable MA types: SMA, EMA, SMMA (RMA), WMA, VWMA
 Dual-filter logic using a custom oscillator and moving averages
 Session and volatility filters to eliminate low-quality setups
 Trailing stop, configurable Take Profit / Stop Loss logic
 “In-wave flag” prevents overtrading within the same trend wave
 Visual clarity with color-shifting candles and entry/exit markers
 
 📈 Trading Rules 
 ✅ Long Entry Conditions: 
   Price is above the selected MA
 Oscillator is positive and rising
 200-period EMA indicates an uptrend
 ATR exceeds its median value (sufficient volatility)
 Entry occurs between 09:00–17:00 (exchange time)
 Not currently in an active wave
 
 🔻 Short Entry Conditions: 
   Price is below the selected MA
 Oscillator is negative and falling
 200-period EMA indicates a downtrend
 All other long-entry conditions are inverted
 
 ❌ Exit Conditions: 
   Take Profit or Stop Loss is hit
 Opposing signals from oscillator and MA
 Trailing stop is triggered
 
 🛡️ Risk Management Parameters 
   Pair: ETH/USD
 Timeframe: 4H
 Starting Capital: $3,000
 Commission: 0.02%
 Slippage: 2 pips
 Risk per Trade: 2% of account equity (adjustable)
 Total Trades: 224
 Backtest Period: May 24, 2016 — April 7, 2025
 
Note: Risk parameters are fully customizable to suit your trading style and broker conditions.
 🔧 Trading Parameters & Filters 
   Time Filter: Trades allowed only between 09:00–17:00 (exchange time)
 Volatility Filter: ATR must be above its median value
 Trend Filter: Long-term 200-period EMA
 
 📊 Technical Settings 
 Moving Average 
   Type: SMA
 Length: 40
 Source: hl2
 
 Oscillator 
   Length: 15
 Threshold: 0.5
 
 Risk Management 
   Take Profit: 1.5%
 Stop Loss: 1.0%
 Trailing Stop: 1.0%
 
 👁️ Visual Support 
   MA and oscillator color changes indicate directional bias
 Clear chart markers show entry and exit points
 Trailing stops and risk controls are transparently managed
 
 🚀 Strategy Improvements & Uniqueness 
   In-wave flag avoids repeated entries within the same trend phase
 Filtering based on time, volatility, and trend ensures higher-quality trades
 Dynamic high/low tracking allows precise trailing stop placement
 Fully rule-based execution reduces emotional decision-making
 
 💡 Inspirations & Attribution 
This strategy is inspired by the excellent concept from:
 ChartPrime – “Moving Average Shift” 
It expands on the original idea with advanced trade filters and trailing logic.
Source reference:  
 📌 Summary 
The  Moving Average Shift WaveTrend Strategy  offers a rule-based, reliable approach to trend trading. By combining trend and momentum filters with robust risk controls, it provides a consistent framework suitable for various market conditions and trading styles.
 ⚠️ Disclaimer 
This script is for educational purposes only. Trading involves risk. Always use proper backtesting and risk evaluation before applying in live markets.
BB Breakout + Momentum Squeeze [Strategy]This Strategy is Based on 3 free indicators
- Bollinger Bands Breakout Oscillator:  Link 
- TTM Squeeze Pro:  Link 
- Rolling ATR Bands:  Link 
Bollinger Bands Breakout Oscillator - This tool shows how strong a market trend is by measuring how often prices move outside their normal Bollinger bands range. It helps you see whether prices are strongly moving in one direction or just moving sideways. By looking at how much and how frequently prices push beyond their typical boundaries, you can identify which direction the market is heading over your selected time period.
TM Squeeze Pro - This is a custom version of the TTM Squeeze indicator.
It's designed to help traders spot consolidation phases in the market (when price is coiling or "squeezing") and to catch breakouts early when volatility returns. The logic is based on the relationship between Bollinger Bands and Keltner Channels, combined with a momentum oscillator to show direction and strength.
Rolling ATR Bands - This indicator combines volatility bands (ATR) with momentum and trend signals to show where the market might be breaking out, retesting, or trending. It's highly visual and helpful for traders looking to time entries/exits during trending or volatile moves.
Logic Of the Strategy: 
We are going to use the Bollinger Bands Breakout to determine the direction of the market. Than check the Volatility of the price by looking at the TTM Squeeze indicator. And use the ATR Bands to determine dynamic Stop Losses and based on the calculate the Take Profit targets and quantity for each position dynamically. 
For the Long Setup: 
1. We need to see the that Bull Power (Green line of the Bollinger Bands Breakout Oscilator) is crossing the level of 50. 
2. Check the presence of volatility (Green dot based on the TTM Squeeze indicator) 
For the Short Setup: 
1. We need to see the that Bear Power (Red line of the Bollinger Bands Breakout Oscilator) is crossing the level of 50. 
2. Check the presence of volatility (Green dot based on the TTM Squeeze indicator) 
Stop Loss is determined by the Lower ATR Band (for the Long entry) and Upper ATR Band (For the Short entry)
Take Profit is 1:1.5 risk reward ration, which means if the Stop loss is 1% the TP target will be 1.5% 
Move stop Loss to Breakeven: If the price will go in the direction of the trade for at least half of the Risk Reward target then the stop will automatically be adjusted to the entry price. For Example: the Stop Loss is 1%, the price has move at least 0.5% in the direction of your trade and that will move the Stop Loss level to the Entry point. 
You can Adjust the parameters for each indicator used in that script and also adjust the Risk and Money management block to see how the PnL will change.
is_strategyCorrection-Adaptive Trend Strategy (Open-Source)
Core Advantage: Designed specifically for the is_correction indicator, with full transparency and customization options.
Key Features:
Open-Source Code:
✅ Full access to the strategy logic – study how every trade signal is generated.
✅ Freedom to customize – modify entry/exit rules, risk parameters, or add new indicators.
✅ No black boxes – understand and trust every decision the strategy makes.
 Built for is_correction: 
Filters out false signals during market noise.
Works only in confirmed trends (is_correction = false).
Adaptable for Your Needs:
Change Take Profit/Stop Loss ratios directly in the code.
Add alerts, notifications, or integrate with other tools (e.g., Volume Profile).
For Developers/Traders:
Use the code as a template for your own strategies.
Test modifications risk-free on historical data.
How the Strategy Works:
Main Goal:
Automatically buys when the price starts rising and sells when it starts falling, but only during confirmed trends (ignoring temporary pullbacks).
What You See on the Chart:
📈 Up arrows ▼ (below the candle) = Buy signal.
📉 Down arrows ▲ (above the candle) = Sell signal.
Gray background = Market is in a correction (no trades).
Key Mechanics:
Buy Condition:
Price closes higher than the previous candle + is_correction confirms the main trend (not a pullback).
Example: Red candle → green candle → ▼ arrow → buy.
Sell Condition:
Price closes lower than the previous candle + is_correction confirms the trend (optional: turn off short-selling in settings).
Exit Rules:
Closes trades automatically at:
+0.5% profit (adjustable in settings).
-0.5% loss (adjustable).
Or if a reverse signal appears (e.g., sell signal after a buy).
User-Friendly Settings:
Sell – On (default: ON):
ON → Allows short-selling (selling when price falls).
OFF → Strategy only buys and closes positions.
Revers (default: OFF):
ON → Inverts signals (▼ = sell, ▲ = buy).
%Profit & %Loss:
Adjust these values (0-30%) to increase/decrease profit targets and risk.
Example Scenario:
Buy Signal:
Price rises for 3 days → green ▼ arrow → strategy buys.
Stop loss set 0.5% below entry price.
If price keeps rising → trade closes at +0.5% profit.
Correction Phase:
After a rally, price drops for 1 day → gray background → strategy ignores the drop (no action).
Stop Loss Trigger:
If price drops 0.5% from entry → trade closes automatically.
Key Features:
Correction Filter (is_correction):
Acts as a “noise filter” → avoids trades during temporary pullbacks.
Flexibility:
Disable short-selling, flip signals, or tweak profit/loss levels in seconds.
Transparency:
Open-source code → see exactly how every signal is generated (click “Source” in TradingView).
Tips for Beginners:
Test First:
Run the strategy on historical data (click the “Chart” icon in TradingView).
See how it performed in the past.
Customize It:
Increase %Profit to 2-3% for volatile assets like crypto.
Turn off Sell – On if short-selling confuses you.
Trust the Stop Loss:
Even if you think the price will rebound, the strategy will close at -0.5% to protect your capital.
Where to Find Settings:
Click the strategy name on the top-left of your chart → adjust sliders/toggles in the menu.
Русская Версия
Трендовая стратегия с открытым кодом
Главное преимущество: Полная прозрачность логики и адаптация под ваши нужды.
Особенности:
Открытый исходный код:
✅ Видите всю «кухню» стратегии – как формируются сигналы, когда открываются сделки.
✅ Меняйте правила – корректируйте тейк-профит, стоп-лосс или добавляйте новые условия.
✅ Никаких секретов – вы контролируете каждое правило.
Заточка под is_correction:
Игнорирует ложные сигналы в коррекциях.
Работает только в сильных трендах (is_correction = false).
Гибкая настройка:
Подстройте параметры под свой риск-менеджмент.
Добавьте свои индикаторы или условия для входа.
Для трейдеров и разработчиков:
Используйте код как основу для своих стратегий.
Тестируйте изменения на истории перед реальной торговлей.
Простыми словами:
Почему это удобно:
Открытый код = полный контроль. Вы можете:
Увидеть, как именно стратегия решает купить или продать.
Изменить правила закрытия сделок (например, поставить TP=2% вместо 1.5%).
Добавить новые условия (например, торговать только при высоком объёме).
Примеры кастомизации:
Новички: Меняйте только TP/SL в настройках (без кодинга).
Продвинутые: Добавьте RSI-фильтр, чтобы избегать перекупленности.
Разработчики: Встройте стратегию в свою торговую систему.
Как начать:
Скачайте код из TradingView.
Изучите логику в разделе strategy.entry/exit.
Меняйте параметры в блоке input.* (безопасно!).
Тестируйте изменения и оптимизируйте под свои цели.
Как работает стратегия:
Главная задача:
Автоматически покупает, когда цена начинает расти, и продаёт, когда падает. Но делает это «умно» — только когда рынок в основном тренде, а не во временном откате (коррекции).
Что видно на графике:
📈 Стрелки вверх ▼ (под свечой) — сигнал на покупку.
📉 Стрелки вниз ▲ (над свечой) — сигнал на продажу.
Серый фон — рынок в коррекции (не торгуем).
Как это работает:
Когда покупаем:
Если цена закрылась выше предыдущей и индикатор is_correction показывает «основной тренд» (не коррекция).
Пример: Была красная свеча → стала зелёная → появилась стрелка ▼ → покупаем.
Когда продаём:
Если цена закрылась ниже предыдущей и is_correction подтверждает тренд (опционально, можно отключить в настройках).
Когда закрываем сделку:
Автоматически при достижении:
+0.5% прибыли (можно изменить в настройках).
-0.5% убытка (можно изменить).
Или если появился противоположный сигнал (например, после покупки пришла стрелка продажи).
Настройки для чайников:
«Sell – On» (включено по умолчанию):
Если включено → стратегия будет продавать в шорт.
Если выключено → только покупки и закрытие позиций.
«Revers» (выключено по умолчанию):
Если включить → стратегия будет работать наоборот (стрелки ▼ = продажа, ▲ = покупка).
«%Profit» и «%Loss»:
Меняйте эти цифры (от 0 до 30), чтобы увеличить/уменьшить прибыль и риски.
Пример работы:
Сигнал на покупку:
Цена 3 дня растет → появляется зелёная стрелка ▼ → стратегия покупает.
Стоп-лосс ставится на 0.5% ниже цены входа.
Если цена продолжает расти → сделка закрывается при +0.5% прибыли.
Коррекция:
После роста цена падает на 1 день → фон становится серым → стратегия игнорирует это падение (не закрывает сделку).
Стоп-лосс:
Если цена упала на 0.5% от точки входа → сделка закрывается автоматически.
Важные особенности:
Фильтр коррекций (is_correction):
Это «защита от шума» — стратегия не реагирует на мелкие откаты, работая только в сильных трендах.
Гибкие настройки:
Можно запретить шорты, перевернуть сигналы или изменить уровни прибыли/убытка за 2 клика.
Прозрачность:
Весь код открыт → вы можете увидеть, как формируется каждый сигнал (меню «Исходник» в TradingView).
Советы для новичков:
Начните с теста:
Запустите стратегию на исторических данных (кнопка «Свеча» в окне TradingView).
Посмотрите, как она работала в прошлом.
Настройте под себя:
Увеличьте %Profit до 2-3%, если торгуете валюты.
Отключите «Sell – On», если не понимаете шорты.
Доверяйте стоп-лоссу:
Даже если кажется, что цена развернётся — стратегия закроет сделку при -0.5%, защитив ваш депозит.
Где найти настройки:
Кликните на название стратегии в верхнем левом углу графика → откроется меню с ползунками и переключателями.
Важно: Стратегия предоставляет «рыбу» – чтобы она стала «уловистой», адаптируйте её под свой стиль торговли!
AO/AC Trading Zones Strategy [Skyrexio] Overview 
AO/AC Trading Zones Strategy   leverages the combination of Awesome Oscillator (AO), Acceleration/Deceleration Indicator (AC), Williams Fractals, Williams Alligator and Exponential Moving Average (EMA) to obtain the high probability long setups. Moreover, strategy uses multi trades system, adding funds to long position if it considered that current trend has likely became stronger. Combination of AO and AC is used for creating so-called trading zones to create the signals, while Alligator and Fractal are used in conjunction as an approximation of short-term trend to filter them. At the same time EMA (default EMA's period = 100) is used as high probability long-term trend filter to open long trades only if it considers current price action as an uptrend. More information in "Methodology" and "Justification of Methodology" paragraphs. The strategy opens only long trades.
 Unique Features 
 
 No fixed stop-loss and take profit:  Instead of fixed stop-loss level strategy utilizes technical condition obtained by Fractals and Alligator to identify when current uptrend is likely to be over. In some special cases strategy uses AO and AC combination to trail profit (more information in "Methodology" and "Justification of Methodology" paragraphs)
 Configurable Trading Periods:  Users can tailor the strategy to specific market windows, adapting to different market conditions.
 Multilayer trades opening system:  strategy uses only 10% of capital in every trade and open up to 5 trades at the same time if script consider current trend as strong one.
 Short and long term trend trade filters:  strategy uses EMA as high probability long-term trend filter and Alligator and Fractal combination as a short-term one.
 
 Methodology 
The strategy opens long trade when the following price met the conditions:
1. Price closed above EMA (by default, period = 100). Crossover is not obligatory.
2. Combination of Alligator and Williams Fractals shall consider current trend as an upward (all details in "Justification of Methodology" paragraph)
3. Both AC and AO shall print two consecutive increasing values. At the price candle close which corresponds to this condition algorithm opens the first long trade with 10% of capital.
4. If combination of Alligator and Williams Fractals shall consider current trend has been changed from up to downtrend, all long trades will be closed, no matter how many trades has been opened.
5. If AO and AC both continue printing the rising values strategy opens the long trade on each candle close with 10% of capital while number of opened trades reaches 5. 
6. If AO and AC both has printed 5 rising values in a row algorithm close all trades if candle's low below the low of the 5-th candle with rising AO and AC values in a row.
Script also has additional visuals. If second long trade has been opened simultaneously the Alligator's teeth line is plotted with the green color. Also for every trade in a row from 2 to 5 the label "Buy More" is also plotted just below the teeth line. With every next simultaneously opened trade the green color of the space between teeth and price became less transparent.
 Strategy settings 
In the inputs window user can setup strategy setting: 
 EMA Length  (by default = 100, period of EMA, used for long-term trend filtering EMA calculation). 
User can choose the optimal parameters during backtesting on certain price chart.
 Justification of Methodology 
Let's explore the key concepts of this strategy and understand how they work together. We'll begin with the simplest: the EMA.
The Exponential Moving Average (EMA) is a type of moving average that assigns greater weight to recent price data, making it more responsive to current market changes compared to the Simple Moving Average (SMA). This tool is widely used in technical analysis to identify trends and generate buy or sell signals. The EMA is calculated as follows:
1.Calculate the Smoothing Multiplier:
 Multiplier = 2 / (n + 1), Where n is the number of periods. 
2. EMA Calculation
 EMA = (Current Price) × Multiplier + (Previous EMA) × (1 − Multiplier) 
In this strategy, the EMA acts as a long-term trend filter. For instance, long trades are considered only when the price closes above the EMA (default: 100-period). This increases the likelihood of entering trades aligned with the prevailing trend.
Next, let’s discuss the short-term trend filter, which combines the Williams Alligator and Williams Fractals. Williams Alligator
Developed by Bill Williams, the Alligator is a technical indicator that identifies trends and potential market reversals. It consists of three smoothed moving averages:
 
 Jaw (Blue Line):  The slowest of the three, based on a 13-period smoothed moving average shifted 8 bars ahead.
 Teeth (Red Line):  The medium-speed line, derived from an 8-period smoothed moving average shifted 5 bars forward.
 Lips (Green Line):  The fastest line, calculated using a 5-period smoothed moving average shifted 3 bars forward.
 
When the lines diverge and align in order, the "Alligator" is "awake," signaling a strong trend. When the lines overlap or intertwine, the "Alligator" is "asleep," indicating a range-bound or sideways market. This indicator helps traders determine when to enter or avoid trades.
Fractals, another tool by Bill Williams, help identify potential reversal points on a price chart. A fractal forms over at least five consecutive bars, with the middle bar showing either:
 
 Up Fractal:  Occurs when the middle bar has a higher high than the two preceding and two following bars, suggesting a potential downward reversal.
 Down Fractal:  Happens when the middle bar shows a lower low than the surrounding two bars, hinting at a possible upward reversal.
 
Traders often use fractals alongside other indicators to confirm trends or reversals, enhancing decision-making accuracy.
How do these tools work together in this strategy? Let’s consider an example of an uptrend.
When the price breaks above an up fractal, it signals a potential bullish trend. This occurs because the up fractal represents a shift in market behavior, where a temporary high was formed due to selling pressure. If the price revisits this level and breaks through, it suggests the market sentiment has turned bullish.
The breakout must occur above the Alligator’s teeth line to confirm the trend. A breakout below the teeth is considered invalid, and the downtrend might still persist. Conversely, in a downtrend, the same logic applies with down fractals.
In this strategy if the most recent up fractal breakout occurs above the Alligator's teeth and follows the last down fractal breakout below the teeth, the algorithm identifies an uptrend. Long trades can be opened during this phase if a signal aligns. If the price breaks a down fractal below the teeth line during an uptrend, the strategy assumes the uptrend has ended and closes all open long trades.
By combining the EMA as a long-term trend filter with the Alligator and fractals as short-term filters, this approach increases the likelihood of opening profitable trades while staying aligned with market dynamics.
Now let's talk about the trading zones concept and its signals. To understand this we need to briefly introduce what is AO and AC. The Awesome Oscillator (AO), developed by Bill Williams, is a momentum indicator designed to measure market momentum by contrasting recent price movements with a longer-term historical perspective. It helps traders detect potential trend reversals and assess the strength of ongoing trends.
The formula for AO is as follows:
 AO = SMA5(Median Price) − SMA34(Median Price) 
where:
Median Price = (High + Low) / 2
SMA5 = 5-period Simple Moving Average of the Median Price
SMA 34 = 34-period Simple Moving Average of the Median Price
The Acceleration/Deceleration (AC) Indicator, introduced by Bill Williams, measures the rate of change in market momentum. It highlights shifts in the driving force of price movements and helps traders spot early signs of trend changes. The AC Indicator is particularly useful for identifying whether the current momentum is accelerating or decelerating, which can indicate potential reversals or continuations. For AC calculation we shall use the AO calculated above is the following formula:
 AC = AO − SMA5(AO) , where SMA5(AO)is the 5-period Simple Moving Average of the Awesome Oscillator
When the AC is above the zero line and rising, it suggests accelerating upward momentum.
When the AC is below the zero line and falling, it indicates accelerating downward momentum.
When the AC is below zero line and rising it suggests the decelerating the downtrend momentum. When AC is above the zero line and falling, it suggests the decelerating the uptrend momentum.
Now let's discuss the trading zones concept and how it can create the signal. Zones are created by the combination of AO and AC. We can divide three zone types:
 
 Greed zone:  when the AO and AC both are rising 
 Red zone:  when the AO and AC both are decreasing 
 Gray zone:  when one of AO or AC is rising, the other is falling
 
Gray zone is considered as uncertainty. AC and AO are moving in the opposite direction. Strategy skip such price action to decrease the chance to stuck in the losing trade during potential sideways. Red zone is also not interesting for the algorithm because both indicators consider the trend as bearish, but strategy opens only long trades. It is waiting for the green zone to increase the chance to open trade in the direction of the potential uptrend. When we have 2 candles in a row in the green zone script executes a long trade with 10% of capital.
Two green zone candles in a row is considered by algorithm as a bullish trend, but now so strong, that's the reason why trade is going to be closed when the combination of Alligator and Fractals will consider the the trend change from bullish to bearish. If id did not happens, algorithm starts to count the green zone candles in a row. When we have 5 in a row script change the trade closing condition. Such situation is considered is a high probability strong bull market and all trades will be closed if candle's low will be lower than fifth green zone candle's low. This is used to increase probability to secure the profit. If long trades are initiated, the strategy continues utilizing subsequent signals until the total number of trades reaches a maximum of 5. Each trade uses 10% of capital. 
Why we use trading zones signals? If currently strategy algorithm considers the high probability of the short-term uptrend with the Alligator and Fractals combination pointed out above and the long-term trend is also suggested by the EMA filter as bullish. Rising AC and AO values in the direction of the most likely main trend signaling that we have the high probability of the fastest bullish phase on the market. The main idea is to take part in such rapid moves and add trades if this move continues its acceleration according to indicators. 
 Backtest Results 
Operating window: Date range of backtests is 2023.01.01 - 2024.12.31. It is chosen to let the strategy to close all opened positions.
Commission and Slippage: Includes a standard Binance commission of 0.1% and accounts for possible slippage over 5 ticks.
Initial capital: 10000 USDT
Percent of capital used in every trade: 10%
Maximum Single Position Loss: -9.49%
Maximum Single Profit: +24.33%
Net Profit: +4374.70 USDT (+43.75%)
Total Trades: 278 (39.57% win rate)
Profit Factor: 2.203
Maximum Accumulated Loss: 668.16 USDT (-5.43%)
Average Profit per Trade: 15.74 USDT (+1.37%)
Average Trade Duration: 60 hours
 How to Use 
Add the script to favorites for easy access.
Apply to the desired timeframe and chart (optimal performance observed on 4h BTC/USDT).
Configure settings using the dropdown choice list in the built-in menu.
Set up alerts to automate strategy positions through web hook with the text: {{strategy.order.alert_message}}
 Disclaimer: 
Educational and informational tool reflecting Skyrex commitment to informed trading. Past performance does not guarantee future results. Test strategies in a simulated environment before live implementation
These results are obtained with realistic parameters representing trading conditions observed at major exchanges such as Binance and with realistic trading portfolio usage parameters.
Pure Price Action Breakout with 1:5 RR
Description of the Price Action Trading Script (Pine Script v6)
Overview
This script is a pure price action-based breakout strategy designed for TradingView. It identifies key breakout levels and executes long and short trades based on market structure. The strategy ensures a minimum risk-to-reward ratio (RR) of 1:5, aiming for high profitability with well-defined stop-loss and take-profit levels.
How the Script Works
1️⃣ Breakout Identification
The script uses a lookback period to find the highest high and lowest low over the last n bars.
A bullish breakout occurs when the price closes above the previous highest high.
A bearish breakout happens when the price closes below the previous lowest low.
2️⃣ Entry & Exit Strategy
Long Entry: If a bullish breakout is detected, the script enters a long position.
Short Entry: If a bearish breakout is detected, the script enters a short position.
The stop-loss is placed at the recent swing low (for long trades) or recent swing high (for short trades).
The target price is calculated based on a risk-to-reward ratio of 1:5, ensuring profitable trades.
3️⃣ Risk Management
The stop-loss prevents excessive losses by exiting trades when the market moves unfavorably.
The strategy ensures that each trade has a reward potential at least 5 times the risk.
Positions are executed based on price action only, without indicators like moving averages or RSI.
4️⃣ Visual Representation
The script plots breakout levels to help traders visualize potential trade setups.
Entry points, stop-loss, and take-profit levels are labeled on the chart for easy tracking.
Key Features & Benefits
✔ Pure Price Action – No lagging indicators, only real-time price movements.
✔ High Risk-to-Reward Ratio (1:5) – Ensures high-profit potential trades.
✔ Real-time Entry & Exit Signals – Provides accurate trade setups.
✔ Dynamic Stop-loss Calculation – Adjusts based on recent market structure.
✔ Customizable Parameters – Lookback periods and risk ratios can be modified.
EMA SHIFT & PARALLEL [n_dot]BINANCE:ETHUSDT.P 
This strategy was developed for CRYPTO FUTURES, (the settings for ETHUSDT.P) . I aimed for the strategy to function in a live environment, so I focused on making its operation realistic:
 
 When determining the position, only 80% (adjustable) of the available cash is invested to reduce the risk of position liquidation.
 I account for a 0.05% commission, typical on the futures market, for each entry and exit.
 
 Concept: 
I modified a simple, well-known method: the crossover of two exponential moving averages (FAST, SLOW) generates the entry and exit signals.
 I enhanced the base idea as follows:
 
 For the fast EMA, I incorporated a multiplier (offset) to filter out market noise and focus only on strong signals.
 I use different EMAs for long and short entry points; both have their own FAST and SLOW EMAs and their own offset. For longs, the FAST EMA is adjusted downward (<1), while for shorts, it is adjusted upward (>1). Consequently, the signal is generated when the modified FAST EMA crosses the SLOW EMA.
 
 Risk Management: 
The position includes the following components:
 
 Separate stop-losses for long and short positions.
 Separate trailers for long and short positions.
 The strategy operates so that the entry point is determined by the EMA crossover, while the exit is governed only by the Stop Loss or Trailer. Optionally, it can be set to close the position at the EMA recrossing ("Close at Signal").
 
Trailer Operation:
 
 An entry percentage and offset are defined. The trailer activates when the price surpasses the entry price, calculated automatically by the system.
 The trailer closes the position when the price drops by the offset percentage from the highest reached price.
 
 Example for trailer:
 
 Purchase Price = 100
 Trailer Enter = 5% → Activation Price = 105 (triggers trailer if market price crosses it).
 Trailer Offset = 2%
 
 If the price rises to 110, the exit price becomes 107.8.
 If the price goes to 120, the exit price becomes 117.6.
 If the price falls below 117.6, the trailer closes the position.
 
 Settings: 
 
 Source: Determines the market price reference.
 End Close: Closes positions at the end of the simulation to avoid "shadow positions" and provide an objective result.
 Lot proportional to free cash (%): Only a portion of free cash is invested to meet margin requirements.
 Plot Short, Plot Long: Simplifies displayed information by toggling indicator lines on/off.
 Long Position (toggleable):
 EMA Fast ws: Window size for FAST EMA.
 EMA Slow ws: Window size for SLOW EMA.
 EMA Fast down shift: Adjustment factor for FAST EMA.
 Stop Loss long (%): Percent drop to close the position.
 Trailer enter (%): Percent above the purchase price to activate the trailer.
 Trailer offset (%): Percent drop to close the position.
 Short Position (toggleable):
 EMA Fast ws: Window size for FAST EMA.
 EMA Slow ws: Window size for SLOW EMA.
 EMA Fast up shift: Adjustment factor for FAST EMA.
 Stop Loss short (%): Percent rise to close the position.
 Trailer enter (%): Percent below the purchase price to activate the trailer.
 Trailer offset (%): Percent rise to close the position.
 
 Operational Framework: 
 
 If in a long position and a short EMA crossover occurs, the strategy closes the long and opens a short (flip).
 If in a short position and a long EMA crossover occurs, the strategy closes the short and opens a long (flip).
 
 A position can close in three ways: 
 
 Stop Loss
 Trailer
 Signal Recrossing
 
If none are active, the position remains open until the end of the simulation.
 Observations: 
 
 Shifts significantly deviating from 1 increase overfitting risk. Recommended ranges: 0.96–0.99 (long) and 1.01–1.05 (short).
 The strategy's advantage lies in risk management, crucial in leveraged futures markets. It operates with relatively low DrawDown.
 
 Recommendations: 
 
 Bullish Market: Higher entry threshold (e.g., 6%) and larger offset (e.g., 3%).
 Volatile/Sideways Market: Tighter parameters (e.g., 3%, 1%).
 The method is stable, and minor parameter adjustments do not significantly impact results, helping assess overfitting: if small changes lead to drastic differences, the strategy is over-optimized.
 EMA Settings: Adjust FAST and SLOW EMAs based on the asset's volatility and cyclicality.
 On the crypto market, especially in the Futures market, short time periods (1–15 minutes) often show significant noise, making patterns/repetitions hard to identify. I recommend setting the interval to at least 1 hour.
 
I hope this contributes to your success!
Sunil High-Frequency Strategy with Simple MACD & RSISunil High-Frequency Strategy with Simple MACD & RSI
This high-frequency trading strategy uses a combination of MACD and RSI to identify quick market opportunities. By leveraging these indicators, combined with dynamic risk management using ATR, it aims to capture small but frequent price movements while ensuring tight control over risk.
Key Features:
Indicators Used:
MACD (Moving Average Convergence Divergence): The strategy uses a shorter MACD configuration (Fast Length of 6 and Slow Length of 12) to capture quick price momentum shifts. A MACD crossover above the signal line triggers a buy signal, while a crossover below the signal line triggers a sell signal.
RSI (Relative Strength Index): A shorter RSI length of 7 is used to gauge overbought and oversold market conditions. The strategy looks for RSI confirmation, with a long trade initiated when RSI is below the overbought level (70) and a short trade initiated when RSI is above the oversold level (30).
Risk Management:
Dynamic Stop Loss and Take Profit: The strategy uses ATR (Average True Range) to calculate dynamic stop loss and take profit levels based on market volatility.
Stop Loss is set at 0.5x ATR to limit risk.
Take Profit is set at 1.5x ATR to capture reasonable price moves.
Trailing Stop: As the market moves in the strategy’s favor, the position is protected by a trailing stop set at 0.5x ATR, allowing the strategy to lock in profits as the price moves further.
Entry & Exit Signals:
Long Entry: Triggered when the MACD crosses above the signal line (bullish crossover) and RSI is below the overbought level (70).
Short Entry: Triggered when the MACD crosses below the signal line (bearish crossover) and RSI is above the oversold level (30).
Exit Conditions: The strategy exits long or short positions based on the stop loss, take profit, or trailing stop activation.
Frequent Trades:
This strategy is designed for high-frequency trading, with trade signals occurring frequently as the MACD and RSI indicators react quickly to price movements. It works best on lower timeframes such as 1-minute, 5-minute, or 15-minute charts, but can be adjusted for different timeframes based on the asset’s volatility.
Customizable Parameters:
MACD Settings: Adjust the Fast Length, Slow Length, and Signal Length to tune the MACD’s sensitivity.
RSI Settings: Customize the RSI Length, Overbought, and Oversold levels to better match your trading style.
ATR Settings: Modify the ATR Length and multipliers for Stop Loss, Take Profit, and Trailing Stop to optimize risk management according to market volatility.
Important Notes:
Market Conditions: This strategy is designed to capture smaller, quicker moves in trending markets. It may not perform well during choppy or sideways markets.
Optimizing for Asset Volatility: Adjust the ATR multipliers based on the asset’s volatility to suit the risk-reward profile that fits your trading goals.
Backtesting: It's recommended to backtest the strategy on different assets and timeframes to ensure optimal performance.
Summary:
The Sunil High-Frequency Strategy leverages a simple combination of MACD and RSI with dynamic risk management (using ATR) to trade small but frequent price movements. The strategy ensures tight stop losses and reasonable take profits, with trailing stops to lock in profits as the price moves in favor of the trade. It is ideal for scalping or intraday trading on lower timeframes, aiming for quick entries and exits with controlled risk.
Omega_galskyThe strategy uses three Exponential Moving Averages (EMAs) — EMA8, EMA21, and EMA89 — to decide when to open buy or sell trades. It also includes a mechanism to move the Stop Loss (SL) to the Break-Even (BE) point, which is the entry price, once the price reaches a Risk-to-Reward (R2R) ratio of 1:1.
Key Steps:
Calculating EMAs: The script computes the EMA values for the specified periods. These help identify market trends and potential entry points.
Buy Conditions:
EMA8 crosses above EMA21.
The candle that causes the crossover is green (closing price is higher than the opening price).
The closing price is above EMA89.
If all conditions are met, a buy order is executed.
Sell Conditions:
EMA8 crosses below EMA21.
The candle that causes the crossover is red (closing price is lower than the opening price).
The closing price is below EMA89.
If all conditions are met, a sell order is executed.
Stop Loss and Take Profit:
Initial Stop Loss and Take Profit levels are calculated based on the entry price and a percentage defined by the user.
These levels help protect against large losses and lock in profits.
Break-Even Logic:
When the price moves favorably to reach a 1:1 R2R ratio:
For a buy trade, the Stop Loss is moved to the entry price if the price increases sufficiently.
For a sell trade, the Stop Loss is moved to the entry price if the price decreases sufficiently.
This ensures the trade is risk-free after the price reaches the predefined level.
Visual Representation:
The EMAs are plotted on the chart for easy visualization of trends and crossovers.
Entry and exit points are also marked on the chart to track trades.
Purpose:
The strategy is designed to capitalize on EMA crossovers while minimizing risks using Break-Even logic and predefined Stop Loss/Take Profit levels. It automates decision-making for trend-following traders and ensures disciplined risk management.
IU Higher Timeframe MA Cross StrategyIU Higher Timeframe MA Cross Strategy   
The IU Higher Timeframe MA Cross Strategy is a versatile trading tool designed to identify trend  by utilizing two customizable moving averages (MAs) across different timeframes and types. This strategy includes detailed entry and exit rules with fully configurable inputs, offering flexibility to suit various trading styles.  
Key Features:  
- Two moving averages (MA1 and MA2) with customizable types, lengths, sources, and timeframes.  
- Both long and short trade setups based on MA crossovers.  
- Integrated risk management with adjustable stop-loss and take-profit levels based on a user-defined risk-to-reward (RTR) ratio.  
- Clear visualization of MAs, entry points, stop-loss, and take-profit zones.  
Inputs:  
1. Risk-to-Reward Ratio (RTR):  
   - Defines the take-profit level in relation to the stop-loss distance. Default is 2.  
2. MA1 Settings:  
   - Source: Select the data source for calculating MA1 (e.g., close, open, high, low). Default is close.  
   - Timeframe: Specify the timeframe for MA1 calculation. Default is 60 (60-minute chart).  
   - Length: Set the lookback period for MA1 calculation. Default is 20.  
   - Type: Choose the type of moving average (options: SMA, EMA, SMMA, WMA, VWMA). Default is EMA.  
   - Smooth: Option to enable or disable smoothing of MA1 to merge gaps. Default is true.  
3. MA2 Settings:  
   - Source: Select the data source for calculating MA2 (e.g., close, open, high, low). Default is close.  
   - Timeframe: Specify the timeframe for MA2 calculation. Default is 60 (60-minute chart).  
   - Length: Set the lookback period for MA2 calculation. Default is 50.  
   - Type: Choose the type of moving average (options: SMA, EMA, SMMA, WMA, VWMA). Default is EMA.  
   - Smooth: Option to enable or disable smoothing of MA2 to merge gaps. Default is true.  
Entry Rules:  
- Long Entry:  
  - Triggered when MA1 crosses above MA2 (crossover).  
  - Entry is confirmed only when the bar is closed and no existing position is active.  
- Short Entry:  
  - Triggered when MA1 crosses below MA2 (crossunder).  
  - Entry is confirmed only when the bar is closed and no existing position is active.  
Exit Rules:  
- Stop-Loss:  
  - For long positions: Set at the low of the bar preceding the entry.  
  - For short positions: Set at the high of the bar preceding the entry.  
- Take-Profit:  
  - For long positions: Calculated as (Entry Price - Stop-Loss) * RTR + Entry Price.  
  - For short positions: Calculated as Entry Price - (Stop-Loss - Entry Price) * RTR.  
Visualization:  
- Plots MA1 and MA2 on the chart with distinct colors for easy identification.  
- Highlights stop-loss and take-profit levels using shaded zones for clear visual representation.  
- Displays the entry level for active positions.  
This strategy provides a robust framework for traders to identify and act on trend reversals while maintaining strict risk management. The flexibility of its inputs allows for seamless customization to adapt to various market conditions and trading preferences.  
Gold Trade Setup Strategy
Title: Profitable Gold Setup Strategy with Adaptive Moving Average & Supertrend
Introduction:
This trading strategy for Gold (XAU/USD) combines the Adaptive Moving Average (AMA) and Supertrend, tailored for high-probability setups during specific trading hours. The AMA identifies the trend, while the Supertrend confirms entry and exit points. The strategy is optimized for swing and intraday traders looking to capitalize on Gold’s price movements with precise trade timing.
Strategy Components:
	1.	Adaptive Moving Average (AMA):
	•	Reacts dynamically to market conditions, filtering noise in choppy markets.
	•	Serves as the primary trend indicator.
	2.	Supertrend:
	•	Confirms entry signals with clear buy and sell levels.
	•	Acts as a trailing stop-loss to protect profits.
Trading Rules:
Trading Hours:
	•	Only take trades between 8:30 AM and 10:30 PM IST.
	•	Avoid trading outside these hours to reduce noise and low-volume setups.
Buy Setup:
	1.	Trend Confirmation: The Adaptive Moving Average (AMA) must be green.
	2.	Signal Confirmation: The Supertrend should turn green after the AMA is green.
	3.	Trigger: Take the trade when the high of the trigger candle (the candle that turned Supertrend green) is broken.
Sell Setup (Optional if included):
	•	Reverse the rules for a short trade: AMA and Supertrend should both indicate bearish conditions (red), and take the trade when the low of the trigger candle is broken.
Stop-Loss and Targets:
	•	Place the stop-loss at the low of the trigger candle for long trades.
	•	Set a 1:2 risk-reward ratio or use the Supertrend line as a trailing stop-loss.
Timeframes:
	•	Recommended timeframes: 1H, 4H, or Daily for swing trading.
	•	For intraday trading, use 15-minute or 30-minute charts.
Why This Strategy Works:
	•	Combines trend-following (AMA) with momentum-based entries (Supertrend).
	•	Focused trading hours filter out low-probability setups.
	•	Provides precise entry, stop-loss, and target levels for disciplined trading.
Conclusion:
This Gold Setup Strategy is designed for traders seeking a structured approach to trading Gold. Follow the rules strictly, backtest the strategy extensively, and share your results. Let’s master the Gold market together!
Tags: #Gold #XAUUSD #SwingTrading #Intraday #Supertrend #AMA #TechnicalAnalysis #GoldStrategy
NexTrade
 Overview of NexTrade: The Future of Crypto Trading
 
 Introduction 
NexTrade is a cutting-edge algorithmic trading platform designed to optimize cryptocurrency trading strategies. Developed by myself, a software engineer with a passion for quantitative development. Over the past year, I have focused on learning and applying quantitative techniques to the crypto space, ultimately crafting a platform that leverages advanced market analysis, automation, and robust risk management to help investors maximize returns while minimizing risk. NexTrade is engineered to help you capitalize on market movements in a fast-paced and highly competitive space, that is Cryptocurrency.
 Key Features and Advantages 
 
 Sophisticated Market Analysis:  NexTrade uses a comprehensive market analysis framework that examines historical trends, price movements, and market conditions across multiple cryptocurrency exchanges. The algorithm identifies trading opportunities by chart analysis on higher timeframes in order to follow trends, allowing it to execute trades at optimal moments. 
 Multi-Exchange Integration:  NexTrade connects to multiple leading cryptocurrency exchanges, such as Binance, Kraken, and Coinbase Pro, to ensure access to diverse liquidity pools. This multi-exchange connectivity allows the platform to execute trades at the most favorable prices, optimizing profitability and minimizing slippage across various platforms. However, we suggest using the exchange with lowest fees possible.
 Risk Management:  NexTrade’s risk management features such as Stop Losses, ATR Trailing SL, and ADX chop indicator allows us to ensure we are effectively managing our risk.
 Backtesting and Optimization:  Before going live, NexTrade’s trading strategies undergo rigorous backtesting using historical market data. This enables users to see how strategies would have performed under various conditions, providing transparency and confidence in the platform’s potential for generating consistent returns. Ongoing optimization ensures that strategies evolve in response to market changes.
 Real-Time Performance Monitoring:  Users have access to detailed, real-time performance reports, tracking key metrics such as trades executed, profits, losses, and overall portfolio performance. This transparency allows investors to make informed decisions and monitor their investments closely at any time.
 
 Market Opportunity 
The cryptocurrency market continues to experience rapid growth, with trillions of dollars in trading volume annually. However, it is also notoriously volatile, creating both risk and reward opportunities for traders. To successfully navigate this market, investors need sophisticated tools that can automate the trading process and optimize decisions based on accurate market analysis.
NexTrade was developed to address this need. With its combination of data-driven market analysis, automated execution, and risk management, NexTrade is positioned to help investors gain an edge in a market that is often unpredictable and challenging. The platform offers a reliable, scalable solution to crypto trading, designed for both beginners and seasoned professionals.
 Why Invest in NexTrade? 
 
 Scalable and Flexible: Whether you’re trading small amounts or large volumes, NexTrade can scale to accommodate your needs. The platform supports multiple exchanges, giving users the flexibility to diversify and grow their investments. Users can start with as low as $100!
 Risk-Adjusted Returns: By focusing on risk management, NexTrade aims to deliver returns that are balanced with the level of risk the investor is willing to accept. The algorithm continuously adjusts trading strategies to align with market conditions, maximizing the potential for profits while minimizing the likelihood of significant losses.
 24/7 Trading: The cryptocurrency market operates around the clock, and NexTrade is designed to take advantage of this. Its automated nature means that it can execute trades at any time, without the need for human intervention.
 
 Conclusion 
NexTrade offers a sophisticated yet accessible solution for investors looking to capitalize on the growth of the cryptocurrency market. With its focus on data-driven analysis, automated trade execution, and advanced risk management, NexTrade empowers investors to achieve optimal returns while managing risk effectively. Whether you are new to crypto or an experienced trader, NexTrade provides the tools needed to stay competitive and succeed in a fast-moving market.
By investing in NexTrade, you are gaining access to a proven algorithmic trading platform that has the potential to enhance your crypto trading strategy and deliver consistent results. The future of cryptocurrency trading is automated, risk-managed, and optimized—and NexTrade is leading the way.
If users wish the enable the chop detector on the bot, which uses ADX, they can turn it on in the settings after the strategu is added to the chart. By default, it is set to false.
IU open equal to high/low strategyIU open equal to high/low strategy: 
 
The "IU Open Equal to High/Low Strategy" is designed to identify and trade specific market conditions where the day's first price action shows a strong directional bias. This strategy automatically enters trades based on the relationship between the market's open price and its first high or low of the day.
 Entry Conditions:   
1. Long Entry: A long position is initiated when the first open price of the session equals the day's first low. This signals a potential upward move.  
2. Short Entry: A short position is initiated when the first open price of the session equals the day's first high. This signals a potential downward move.  
 Exit Conditions:   
1. Stop Loss (SL): For both long and short trades, the stop loss is calculated based on the low or high of the candle where the position was entered.  
2. Take Profit (TP): The take profit is set using a Risk-to-Reward (RTR) ratio, which is customizable by the user. The TP is calculated relative to the entry price and the distance between the entry and the stop loss.  
 Additional Features:   
- Plots are used to visualize the entry price, stop loss, and take profit levels directly on the chart, providing clear and actionable insights.  
- Labels are displayed to indicate the occurrence of the "Open == Low" or "Open == High" conditions for easier identification of potential trade setups.  
- A dynamic fill highlights the areas between the entry price and the stop loss or take profit, offering a clear visual representation of the trade's risk and reward zones.  
This strategy is designed for traders looking to capitalize on directional momentum at the start of the trading session. It is customizable, allowing users to set their desired Risk-to-Reward ratio and tailor the strategy to fit their trading style.  
R-based Strategy Template [Daveatt]Have you ever wondered how to properly track your trading performance based on risk rather than just profits? 
This template solves that problem by implementing R-multiple tracking directly in TradingView's strategy tester.
This script is a tool that you must update with your own trading entry logic.
 Quick notes 
Before we dive in, I want to be clear: this is a template focused on R-multiple calculation and visualization. 
I'm using a basic RSI strategy with dummy values just to demonstrate how the R tracking works. The actual trading signals aren't important here - you should replace them with your own strategy logic.
 R multiple logic 
Let's talk about what R-multiple means in practice. 
Think of R as your initial risk per trade. 
For instance, if you have a $10,000 account and you're risking 1% per trade, your 1R would be $100. 
A trade that makes twice your risk would be +2R ($200), while hitting your stop loss would be -1R (-$100). 
This way of measuring makes it much easier to evaluate your strategy's performance regardless of account size.
 Whenever the SL is hit, we lose -1R 
Proof showing the strategy tester whenever the SL is hit: i.imgur.com
The magic happens in how we calculate position sizes. 
The script automatically determines the right position size to risk exactly your specified percentage on each trade.
This is done through a simple but powerful calculation:
 
risk_amount = (strategy.equity * (risk_per_trade_percent / 100))
sl_distance = math.abs(entry_price - sl_price)
position_size = risk_amount / (sl_distance * syminfo.pointvalue)
 
 Limitations with lower timeframe gaps 
This ensures that if your stop loss gets hit, you'll lose exactly the amount you intended to risk. No more, no less.
Well, could be more or less actually ... let's assume you're trading futures on a 15-minute chart but in the 1-minute chart there is a gap ... then your 15 minute SL won't get filled and you'll likely to not lose exactly -1R 
This is annoying but it can't be fixed - and that's how trading works anyway.
 Features 
The template gives you flexibility in how you set your stop losses. You can use fixed points, ATR-based stops, percentage-based stops, or even tick-based stops. 
Regardless of which method you choose, the position sizing will automatically adjust to maintain your desired risk per trade.
To help you track performance, I've added a comprehensive statistics table in the top right corner of your chart. 
It shows you everything you need to know about your strategy's performance in terms of R-multiples: how many R you've won or lost, your win rate, average R per trade, and even your longest winning and losing streaks.
Happy trading! 
And remember, measuring your performance in R-multiples is one of the most classical ways to evaluate and improve your trading strategies.
Daveatt
IU EMA Channel StrategyIU EMA Channel Strategy 
Overview:
The IU EMA Channel Strategy is a simple yet effective trend-following strategy that uses two Exponential Moving Averages (EMAs) based on the high and low prices. It provides clear entry and exit signals by identifying price crossovers relative to the EMAs while incorporating a built-in Risk-to-Reward Ratio (RTR) for effective risk management.
Inputs ( Settings ):
- RTR (Risk-to-Reward Ratio): Define the ratio for risk-to-reward (default = 2).  
- EMA Length: Adjust the length of the EMA channels (default = 100).
How the Strategy Works
1. EMA Channels:  
   - High-based EMA: EMA calculated on the high price.  
   - Low-based EMA: EMA calculated on the low price.  
   The area between these two EMAs creates a "channel" that visually highlights potential support and resistance zones.
2. Entry Rules:  
   - Long Entry: When the price closes above the high-based EMA (crossover).  
   - Short Entry: When the price closes below the low-based EMA (crossunder).  
   These entries ensure trades are taken in the direction of momentum.
3. Stop Loss (SL) and Take Profit (TP):
   - Stop Loss:  
      - For long positions, the SL is set at the previous bar's low.  
      - For short positions, the SL is set at the previous bar's high.  
   - Take Profit:  
      - TP is automatically calculated using the Risk-to-Reward Ratio (RTR) you define.  
      - Example: If RTR = 2, the TP will be 2x the risk distance.
4. Exit Rules:  
   - Positions are closed at either the stop loss or the take profit level.  
   - The strategy manages exits automatically to enforce disciplined risk management.
Visual Features
1. EMA Channels:  
   - The high and low EMAs are dynamically color-coded:  
     - Green: Price is above the EMA (bullish condition).  
     - Red: Price is below the EMA (bearish condition).  
   - The area between the EMAs is shaded for better visual clarity.
2. Stop Loss and Take Profit Zones:  
   - SL and TP levels are plotted for both long and short positions.  
   - Zones are filled with:  
     - Red: Stop Loss area.  
     - Green: Take Profit area.  
Be sure to manage your risk and position size properly.
TheHorsyAlgoPROThe Horsy algo is an automated strategy that uses any minute Higher timeframe range as reference and search for a purge of liquidity on the HTF high or low where buyside or sell side liquidity is, the algo only search this at specific desired times that can be configured according to the time you usually trade, the strategy is known as Turtle soup purge and reverse or lately as CRT.
	 
 Why is useful? 
The purpose of this Algorithm is to help turtle soup traders to quickly identify when the market is likely to reverse the algo evaluates if the opportunity is worth it, base on risk reward and other desired filters. Also this strategy can help to quickly backtest the trader strategy it can be configured in different timeframes  and adapt to the trader personality, they can easily see the results and statistics and notice if its profitable or not. 
This algo is useful for intraday traders looking for a purge and reverse at a key times and at key HTF price levels this only looks the previous HTF highs and lows but is important to also monitor Order blocks, FVGs, gaps, or wicks to have the best results.
	 
 How it works and how it does it? 
The Horsy algo simply Jumps from one type of liquidity to another one buyside to sell side or vice versa. In order for the algo to trigger an entry it has to meet these conditions
1. Take HTF liquidity, trade above a HTF high or below a HTF low in the selected time window
2. Make a change in the state of delivery with a close below the previous candle low for shorts and close above previous candle high for longs.
3. Allow for a reasonable risk reward, it will use the highest high for shorts and the lowest low for longs. The default take profit is the opposite side of the range.
4. Validate others user filters this include enter only trades aligned with the HTF bias, or trades aligned with the LTF bias or booth. The algo have the option to enter only premium and discount entries. And finally, an option to allow for different contract sizes depending of the maximum percent of the account we want to risk default is 1%. For this last option is important to check the initial balance and leverage are configured correctly, is disable by default because it requires more capital to perform well.
We can see the algo performing in the picture below with a short trade, notice there are some white lines, they are the high or the low of HTF candle that start generating inside candles in the HTF meaning a possible consolidation. The algo plots the HTF ranges in a shaded boxes as you can see below 
The HTF bias as you can see in the picture is calculated based on the last close of the HTF meaning close above previous HTF high is bullish close below previous HTF low is bearish. This HTF bias level is also the last HTF mid-price or 50%. By default, this line is enabled.
The LTF bias is calculated based on the range created from the expansion outside the previous HTF range is also the mid-price. If the LTF close above previous HTF high is bullish and if the LTF close below previous HTF low is bearish. By default this LTF bias line is disable.
This strategy includes an original and personal developed code that uses dealing ranges to recognize if the market is expanding, retracing, reversing or consolidating. This allow the algo to exit the position when it detects a retracement or at the end of the expansion. This is the default exit type.
You can monitor the previous dealing ranges created in history with an option than can be enable, by default is disable, this ranges are created after price takes buyside and then sell side or vice versa. So this dealing ranges can be useful also to identify minor pools of liquidity and premium and discount in the lower timeframe.
The picture below is a long example, the exit in this case is just at the high of the range. The normal take profit is in a blue line for longs.
	 
 How to use it? 
First select the desired HTF timeframe recommended is from 30min to 240min then you setup the chart on the lower timeframe you want to trade recommended is from 1min to 15min to enter. By default This strategy is designed to work for intraday during key times when price take stops and then moves quickly away from them. You can select as much as 6 different times or just one. After you select the desired time window where the algo will look for the purge and reverse, They are highlighted in the candles that change colors excluding the gray ones that indicates consolidation.
Then the Algo allow to performs several additional filters in the entries you can select if you want to trade only longs or shorts trades, you can select when to move the stop loss to Break even. In deviations of the risk or you can just select to remove risk when price hits the 50% of previous HTF range.
You can select the minimum desired risk reward of the trade before is allow to be taken. Once is configured correctly the algo should trigger signals with a triangle up or down plus the strategy entry.
At the beginning of the picture there are some blue lines in the HTF high low and close, this is to easily identify that the market is in the Asia session, the time can be configured by the user, these lines are normally gray.
On the right top of the screen you can see some statistics about the strategy how many trades it took, ARR is an approximated value of the accumulated total risk reward of all the trades when they get closed in the simulation. 
Profit factor and percent profitable are also shown should be green it means that the strategy makes money over time. But apart from that is important to notice how it makes money it is stable over time? it is a roller coaster? that why I Include this other measurements MxcsTps is the maximum consecutives take profits and Mxcsls is the maximum consecutive stop losses it takes, the slash number after it is the consecutive Break evens. So this way you know what to expect and what is normal in the strategy.
The algo shows all the times the stop loss, take profit and break even level if enable in the colored red lines for short and blue lines for longs. You can also select how price will manage the profit or stoploss point meaning that you can choose to wait for the candle to close to invalidate your idea or to take profit. This is good to avoid liquidity sweeps but can also lead to mayor loses if the idea is wrong. The default setting is to close the trade when price takes the high or low where the stoploss is, the take profit is taken after a retracement to allow to profit on expansions.  You can select also to exit on a reversal if you want to ride all the move. This last option has to be used with caution because sometimes price just retrace or reverse very fast decreasing the trade profit and overall strategy performance. 
The algo have the option to use standard deviation from the normal risk if you prefer to prevent liquidity sweeps near the stop level this make wider stops but can lead to increased loses so it has to be used carefully.
Below is a picture that show the entry stop and take profit levels with an exit on a retracement activated.
	 
 Strategy Results 
The backtesting results are obtained simulating a 2000usd account in the Micro Nasdaq using 1 contract per trade. Commission are set to 2usd per contract, slippage to 1tick. You can see in list of trades we are not risking more than 1 % percent of the account. The backtested range is from august to November 2024. This strategy doesn’t generate too much trades because of the time filters and conditions that has to be meet to take an entry but you can see the results of the last 4months with the available data that are around 32 trades. 
The default settings for this strategy is HTF as 240min designed to work on a LTF 5min chart, the default purge times are 245-300, 745-800, 845-900, 1045-1100 and 1245-1300 UTC-4, the algo will look for shorts or longs, with a minimum risk reward of 2.0. With an additional filter of the HTFBias. The take profit is by default taken on the first retracement after hitting the target. The default settings are optimized to work on the Nasdaq or Spy, but can also perform well in other assets with the correct adjustments. 
Remember entries constitute only a small component of a complete winning strategy. Other factors like risk management, position-sizing, trading frequency, trading fees, and many others must also be properly managed to achieve profitability. Past performance doesn’t guarantee future results. To really take advantage of this strategy you have to study turtle soup and the HTF key levels use this only as a confirmation that your overall idea will play out and use it to backtest your model.
	 
 Summary of features 
	·Adaptable strategy to different HTF timeframes from 1-1440min
	· Select up to 6 different purge time windows UTC-4, UTC-5
	· Choose desired Risk Reward per trade
	· Easily see the HTF high low close and 50% key levels in the LTF
	· Identify HTF consolidations that generate key major liquidity pools
	· HTF/LTF bias filters to trade in favor of the big trend or in sync
	· Shaded boxes that indicate if the market is bullish, bearish or consolidating
	· See the current midpoint of the last expansion move 
	· Optimal trade entry filter to trade only in a discount or premium
	· Customizable trade management take profit, stop, breakeven level
	· Option to exit on a close, retracement or reversal after hitting the take profit level
	· Option to exit on a close or reversal after hitting stop loss
	· Configurable breakeven point with standard deviations or at 50% of the HTF
	· Calculate different contract sizes depending of a percentage of the initial balance
	· Standard deviations from normal risk can be used to prevent liquidity sweeps
	· See dealing ranges history to check minor pools of liquidity and premium or discount
	· Dashboard with instant statistics about the strategy current settings
CCI Threshold StrategyThe CCI Threshold Strategy is a trading approach that utilizes the Commodity Channel Index (CCI) as a momentum indicator to identify potential buy and sell signals in financial markets. The CCI is particularly effective in detecting overbought and oversold conditions, providing traders with insights into possible price reversals. This strategy is designed for use in various financial instruments, including stocks, commodities, and forex, and aims to capitalize on price movements driven by market sentiment.
 Commodity Channel Index (CCI) 
The CCI was developed by Donald Lambert in the 1980s and is primarily used to measure the deviation of a security's price from its average price over a specified period. 
The formula for CCI is as follows:
 CCI=(TypicalPrice−SMA)×0.015MeanDeviation
CCI=MeanDeviation(TypicalPrice−SMA)×0.015 
where:
 Typical Price = (High + Low + Close) / 3
    SMA = Simple Moving Average of the Typical Price
    Mean Deviation = Average of the absolute deviations from the SMA 
The CCI oscillates around a zero line, with values above +100 indicating overbought conditions and values below -100 indicating oversold conditions (Lambert, 1980).
 Strategy Logic 
The CCI Threshold Strategy operates on the following principles:
 Input Parameters: 
        
Lookback Period: The number of periods used to calculate the CCI. A common choice is 9, as it balances responsiveness and noise.
        
Buy Threshold: Typically set at -90, indicating a potential oversold condition where a price reversal is likely.
        
Stop Loss and Take Profit: The strategy allows for risk management through customizable stop loss and take profit points.
 Entry Conditions: 
        
A long position is initiated when the CCI falls below the buy threshold of -90, indicating potential oversold levels. This condition suggests that the asset may be undervalued and due for a price increase.
 Exit Conditions: 
        
The long position is closed when the closing price exceeds the highest price of the previous day, indicating a bullish reversal. Additionally, if the stop loss or take profit thresholds are hit, the position will be exited accordingly.
 Risk Management: 
        
The strategy incorporates optional stop loss and take profit mechanisms, which can be toggled on or off based on trader preference. This allows for flexibility in risk management, aligning with individual risk tolerances and trading styles.
 Benefits of the CCI Threshold Strategy 
Flexibility: The CCI Threshold Strategy can be applied across different asset classes, making it versatile for various market conditions.
    
Objective Signals: The use of quantitative thresholds for entry and exit reduces emotional bias in trading decisions (Tversky & Kahneman, 1974).
    
Enhanced Risk Management: By allowing traders to set stop loss and take profit levels, the strategy aids in preserving capital and managing risk effectively.
 Limitations 
Market Noise: The CCI can produce false signals, especially in highly volatile markets, leading to potential losses (Bollinger, 2001).
    
Lagging Indicator: As a lagging indicator, the CCI may not always capture rapid market movements, resulting in missed opportunities (Pring, 2002).
 Conclusion 
The CCI Threshold Strategy offers a systematic approach to trading based on well-established momentum principles. By focusing on overbought and oversold conditions, traders can make informed decisions while managing risk effectively. As with any trading strategy, it is crucial to backtest the approach and adapt it to individual trading styles and market conditions.
References
Bollinger, J. (2001). Bollinger on Bollinger Bands. New York: McGraw-Hill.
    
Lambert, D. (1980). Commodity Channel Index. Technical Analysis of Stocks & Commodities, 2, 3-5.
    
Pring, M. J. (2002). Technical Analysis Explained. New York: McGraw-Hill.
    
Tversky, A., & Kahneman, D. (1974). Judgment under uncertainty: Heuristics and biases. Science, 185(4157), 1124-1131.
Price Action StrategyThe  **Price Action Strategy**  is a tool designed to capture potential market reversals by utilizing classic reversal candlestick patterns such as Hammer, Shooting Star, Doji, and Pin Bar near dinamic support and resistance levels.
 ***Note to moderators 
-	The moving average was removed from the strategy because it was not suitable for the strategy and not participating in the entry or exit criteria.  
-	The moving average length has been replaced/renamed by the support/resistance lenght.
-	The bullish engulfing and bearish engulfing patterns were also removed because in practice they were not working as entry criteria, since the candle price invariably closes far from the support/resistance level even considering the sensitivity range. There was no change in the backtest results after removing these patterns.
### Key Elements of the Strategy
 1. Support and Resistance Levels 
   - Support and resistance are pivotal price levels where the asset has previously struggled to move lower (support) or higher (resistance). These levels act as psychological barriers where buying interest (at support) or selling interest (at resistance) often increases, potentially causing price reversals.
   - In this strategy, support is calculated as the lowest low and resistance as the highest high over a 16-period length. When the price nears these levels, it indicates possible zones for a reversal, and the strategy looks for specific candlestick patterns to confirm an entry.
 2. Candlestick Patterns  
   - This strategy uses classic reversal patterns, including:
     - **Hammer**: Indicates a buy signal, suggesting rejection of lower prices.
     - **Shooting Star**: Suggests a sell signal, showing rejection of higher prices.
     - **Doji**: Reflects indecision and potential reversal.
     - **Pin Bar**: Represents price rejection with a long shadow, often signaling a reversal.
By combining these reversal patterns with the proximity to dinamic support or resistance levels, the strategy aims to capture potential reversal movements.
 3. Sensitivity Level 
  - The sensitivity parameter adjusts the acceptable range (Default 0.018 = 1.8%) around support and resistance levels within which reversal patterns can trigger trades (i.e. the closing price of the candle must occur within the specified range defined by the sensitivity parameter). A higher sensitivity value expands this range, potentially leading to less accurate signals, as it may allow for more false positives.
 4. Entry Criteria 
   - **Buy (Long)**: A Hammer, Doji, or Pin Bar pattern near support.
   - **Sell (Short)**: A Shooting Star, Doji, or Pin Bar near resistance.
 5. Exit criteria 
- Take profit = 9.5%
- Stop loss = 16%
 6. No Repainting 
- The Price Action Strategy is not subject to repainting.
 7. Position Sizing by Equity and risk management 
   - This strategy has a default configuration to operate with 35% of the equity.  The stop loss is set to 16% from the entry price. This way, the strategy is putting at risk about 16% of 35% of equity, that is, around 5.6% of equity for each trade. The percentage of equity and stop loss can be adjusted by the user according to their risk management.
 8. Backtest results 
- This strategy was subjected to deep backtest and operations in replay mode on **1000000MOGUSDT.P**, with the inclusion of transaction fees at 0.12% and slipagge of 5 ticks, and the past results have shown consistent profitability. Past results are no guarantee of future results. The strategy's backtest results may even be due to overfitting with past data.
 9. Chart Visualization 
   -  Support and resistance levels are displayed as green (support) and red (resistance) lines. 
   - Only the candlestick pattern that generated the entry signal to triger the trade is identified and labeled on the chart. During the operation, the occurrence of new Doji, Pin Bar, Hammer and Shooting Star patterns will not be demonstrated on the chart, since the exit criteria are based on percentage take profit and stop loss.
Doji:
   
Pin Bar and Doji
   
Shooting Star and Doji
   
Hammer
   
 10. Default settings 
Chart timeframe: 20 min
Moving average lenght: 16
Sensitivity: 0.018
Stop loss (%): 16
Take Profit (%): 9.5
 BYBIT:1000000MOGUSDT.P
XAU/USD Strategy with Correct ADX and Bollinger Bands Fill1. *Indicators Used*:
   - *Exponential Moving Averages (EMAs)*: Two EMAs (20-period and 50-period) are used to identify the trend direction and potential entry points based on crossovers.
   - *Relative Strength Index (RSI)*: A momentum oscillator that measures the speed and change of price movements. It identifies overbought and oversold conditions.
   - *Bollinger Bands*: These consist of a middle line (simple moving average) and two outer bands (standard deviations away from the middle). They help to identify price volatility and potential reversal points.
   - *Average Directional Index (ADX)*: This indicator quantifies trend strength. It's derived from the Directional Movement Index (DMI) and helps confirm the presence of a strong trend.
   - *Average True Range (ATR)*: Used to calculate position size based on volatility, ensuring that trades align with the trader's risk tolerance.
2. *Entry Conditions*:
   - *Long Entry*: 
     - The 20 EMA crosses above the 50 EMA (indicating a potential bullish trend).
     - The RSI is below the oversold level (30), suggesting the asset may be undervalued.
     - The price is below the lower Bollinger Band, indicating potential price reversal.
     - The ADX is above a specified threshold (25), confirming that there is sufficient trend strength.
   
   - *Short Entry*:
     - The 20 EMA crosses below the 50 EMA (indicating a potential bearish trend).
     - The RSI is above the overbought level (70), suggesting the asset may be overvalued.
     - The price is above the upper Bollinger Band, indicating potential price reversal.
     - The ADX is above the specified threshold (25), confirming trend strength.
3. *Position Sizing*:
   - The script calculates the position size dynamically based on the trader's risk per trade (expressed as a percentage of the total capital) and the ATR. This ensures that the trader does not risk more than the specified percentage on any single trade, adjusting the position size according to market volatility.
4. *Exit Conditions*:
   - The strategy uses a trailing stop-loss mechanism to secure profits as the price moves in the trader's favor. The trailing stop is set at a percentage (1.5% by default) below the highest price reached since entry for long positions and above the lowest price for short positions.
   - Additionally, if the RSI crosses back above the overbought level while in a long position or below the oversold level while in a short position, the position is closed to prevent losses.
5. *Alerts*:
   - Alerts are set to notify the trader when a buy or sell condition is met based on the strategy's rules. This allows for timely execution of trades.
### Summary
This strategy aims to capture significant price movements in the XAU/USD market by combining trend-following (EMAs, ADX) and momentum indicators (RSI, Bollinger Bands). The dynamic position sizing based on ATR helps manage risk effectively. By implementing trailing stops and alert mechanisms, the strategy enhances the trader's ability to act quickly on opportunities while mitigating potential losses.
InvoTrading - Swing High and Low with BreakoutInvoTrading - Swing High and Low with Breakout Strategy 
This strategy is designed to identify trading opportunities based on swing highs and lows, combined with breakout confirmations. It utilizes pivot points to detect potential reversal levels and initiates trades when the price breaks out of these levels under specific conditions.
 Key Features: 
-  Pivot Points:  The strategy calculates pivot highs and lows using customizable left and right bars. These pivots represent potential swing points in the market.
-  Breakout Detection:  It monitors for breakouts above pivot highs (Bullish Break of Structure - BOS) and below pivot lows (Bearish Break of Structure).
-  Strong Swings (Optional):  You can enable "Strong Swing" detection, which considers only those pivots where the price attempted but failed to break the pivot level, indicating stronger support or resistance.
-  Trade Management:  The strategy sets entry points, stop losses, and take profits based on a customizable risk-reward ratio.
-  Trade Table:  An optional table displays recent trades, including their status (Pending, Success, or Failed).
-  Visual Aids:  Customizable colors and line settings help visualize pivot points, strong swings, and breakout candles on the chart.
---
 Settings: 
1.  Pivot Settings: 
   -  Left Bars:  Number of bars to the left of the pivot point (default: 5).
   -  Right Bars:  Number of bars to the right of the pivot point (default: 5).
   -  Pivot Based On:  Choose between "High/Low" or "Close" prices for pivot calculations.
2.  Color Settings: 
   -  Pivot High Color:  Color for Pivot High markers (default: Blue).
   -  Pivot Low Color:  Color for Pivot Low markers (default: Red).
   -  Strong Swing High Color:  Color for Strong Swing High markers (default: Black).
   -  Strong Swing Low Color:  Color for Strong Swing Low markers (default: Black).
   -  Breakout Candle Color (BOS):  Color for the breakout candle (default: Yellow).
3.  Line Settings: 
   -  Line Width:  Width of the pivot lines (default: 1).
   -  Line Length (Bars):  Length of the pivot lines in bars (default: 20).
   -  Maximum Number of Lines to Keep:  Limits the number of pivot lines displayed to avoid clutter (default: 100).
4.  Trade Settings: 
   -  Enable Buy and Sell Signals:  Activates trade entries and exits on the chart (default: False).
   -  Show Trades Table:  Displays a table summarizing recent trades (default: False).
   -  Risk-Reward Ratio:  Sets the desired risk-reward ratio for trades (default: 1.5).
   -  Number of Trades to Display:  Maximum number of recent trades shown in the table (default: 5).
   -  Enable Strong Trade:  Only triggers trades when a "Strong Swing" is detected (default: False).
---
 How It Works: 
-  Pivot Detection:  The script identifies pivot highs and lows based on the specified number of left and right bars.
-  Strong Swings:  If enabled, the strategy marks a pivot as a strong swing if the price attempts to break it but closes back within the pivot level.
-  Breakout Confirmation: 
  -  Long Entry:  Occurs when the price closes above a pivot high, signaling a bullish breakout. If "Strong Trade" is enabled, it must be a strong swing high.
  -  Short Entry:  Occurs when the price closes below a pivot low, signaling a bearish breakout. If "Strong Trade" is enabled, it must be a strong swing low.
-  Trade Execution:  Upon a valid breakout, the strategy places a trade with a stop loss set at the previous candle's low (for longs) or high (for shorts). The take profit is calculated based on the specified risk-reward ratio.
-  Trade Monitoring:  The strategy updates the status of each trade (Pending, Success, Failed) based on whether the take profit or stop loss is hit.
-  Visualization:  Breakout candles are highlighted, and pivot lines are drawn with customizable colors and widths. Strong swings are marked distinctly.
---
 Usage Tips: 
-  Backtesting:  Before using this strategy live, backtest it on different time frames and instruments to assess its performance.
-  Customization:  Adjust the pivot settings and risk-reward ratio to match your trading style and the volatility of the instrument you're trading.
-  Risk Management:  Always use proper risk management techniques, even though the strategy calculates stop losses and take profits.






















